check if file exist c#

66

c# check file exists -

if (File.Exists(@"D:\myfile.txt")) {
   Console.WriteLine("The file exists.");
}

Comments

Submit
0 Comments